﻿using System;

namespace AiFrame.InterfaceLib.MVP
{
    /// <summary>
    /// Represents an a view which context menu 
    /// can be extended.
    /// </summary>
    public interface IExtensibleMenuView
    {
        /// <summary>
        /// Adds a menu item to the context menu.
        /// </summary>
        /// <param name="caption">The caption of the menu item.</param>
        /// <param name="eventHandler">The event handler for the menu item.</param>
        void AddContextMenuItem(string caption, EventHandler eventHandler);
    }
}
